package service.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.BaseMapper;
import com.common.BaseService;
import com.common.CommonUtil;

import beans.sys.SYSCodeBean;
import mapper.sys.SYSCodeMapper;

@Service
@Transactional
public class SYSCodeServiceImpl<T> extends BaseService<T>{

	@Autowired
	private SYSCodeMapper sysCodeMapper;
	
	@Override
	public BaseMapper<T> getMapper() {
		return sysCodeMapper;
	}
	
	public SYSCodeBean getByCode(String code){
		return sysCodeMapper.getByCode(code);
	}

	public List<Map> getListByCode(String code) {
		return sysCodeMapper.getListByCode(code);
	}

	public List<SYSCodeBean> getCodePacts(String[] pasts, String code) {
		return sysCodeMapper.getCodePacts(pasts,code);
	}
}
